
//
// 110301 - AH - Created.
// 110808 - AH - Deprecated.
//

package org.soekrat.gui.swing.resource; 

import javax.swing.JSplitPane;

import org.soekrat.engine.Soekrat2Engine;
import org.soekrat.engine.mine.Mine;

/**
 * <p>
 *   {@link Mine}
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC) 
 */
@Deprecated
@SuppressWarnings("serial")
public final class MinePanel extends JSplitPane 
{
  /**
   * <p>
   *   Constructor.
   * </p>
   * @param engine {@link Soekrat2Engine}.
   */
  public MinePanel(Soekrat2Engine engine)
  {
    if (engine==null)
    {
      throw new NullPointerException("engine");
    }
    
    ResourceTreePanel rtp=new ResourceTreePanel(engine);
    ResourceWall rw=new ResourceWall(engine);
    
    setLeftComponent(rtp);
    setRightComponent(rw);
    
    rw.updateWall();
  }
  
}
